package io.acna.qiniu.core;

/**
 * Created by wscl on 2015/6/9.
 */
public class Params {
    public static String RESOURCES_PATH;
    public static String CONTINUE_FILE;
    public static String BUCKET;
    public static String PREFIX;

    public static void init(String[] args) {
        RESOURCES_PATH = args[0];
        CONTINUE_FILE = args.length > 1 ? args[1] : null;
        BUCKET = args.length > 2 ? args[2] : null;
        PREFIX = args.length > 3 ? args[3] : null;

        //输出
        System.out.println("上传根目录：" + RESOURCES_PATH);
        System.out.println((CONTINUE_FILE != null && !"none".equals(CONTINUE_FILE)) ? "续传文件:" + CONTINUE_FILE : "无续传文件.");
        System.out.println("BUCKET:" + BUCKET);
    }
}
